package main

import (
	"cn.hughie/learngo/crawler1/engine"
	"cn.hughie/learngo/crawler1/scheduler"
	"cn.hughie/learngo/crawler1/zhenai/parser"
	"cn.hughie/learngo/crawler1/persist"
)

func main() {
	e := engine.ConcurrentEngine{
		Scheduler:   &scheduler.QueueScheduler{},
		WorkerCount: 10,
		ItemServer:  persist.ItemSave(),
	}
	e.Go(engine.Request{
		Url:       "http://www.zhenai.com/zhenghun",
		ParseFunc: parser.CityListParser,
	})
}
